﻿
    using Chain.BLL;
    using Chain.Model;
    using System;
    using System.Web.UI;

    public partial class WeiXinNewsLink : Page
    {
        protected string divMain = "";
        protected string imgUrl = "";

        protected void Page_Load(object sender, EventArgs e)
        {
            int NewsID;
            string tempNewsID = base.Request["NewsID"];
            if (!string.IsNullOrEmpty(tempNewsID) && int.TryParse(tempNewsID, out NewsID))
            {
                Chain.Model.WeiXinNews newsModel = new Chain.BLL.WeiXinNews().GetModel(NewsID);
                if (newsModel != null)
                {
                    this.imgUrl = newsModel.NewsUrlFirst;
                    this.divMain = newsModel.NewsLinkContent;
                }
            }
        }
    }


